package com.peace.hospital.entity.hospitalization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "depid", type = IdType.AUTO)
    private Integer depid;

    private Integer hosid;

    private String deptype;

    private String depdbsource;

    @Override
    public String toString() {
        return "Department{" +
                "depid=" + depid +
                ", hosid=" + hosid +
                ", deptype='" + deptype + '\'' +
                ", depdbsource='" + depdbsource + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getDepid() {
        return depid;
    }

    public void setDepid(Integer depid) {
        this.depid = depid;
    }

    public Integer getHosid() {
        return hosid;
    }

    public void setHosid(Integer hosid) {
        this.hosid = hosid;
    }

    public String getDeptype() {
        return deptype;
    }

    public void setDeptype(String deptype) {
        this.deptype = deptype;
    }

    public String getDepdbsource() {
        return depdbsource;
    }

    public void setDepdbsource(String depdbsource) {
        this.depdbsource = depdbsource;
    }
}
